fslex -o json_lex.fs json_lex.fsl
if %ERRORLEVEL% EQU 1 EXIT 1
fsyacc -o json_pars.fs json_pars.fsy
if %ERRORLEVEL% EQU 1 EXIT 1

..\..\tools\reswriter.exe bin\webres.resx web_jslib.js web_jsatlas.js
if %ERRORLEVEL% EQU 1 EXIT 1

resgen.exe bin\webres.resx bin\webres.resources
if %ERRORLEVEL% EQU 1 EXIT 1

fsc.exe --fullpaths --progress --resource bin\webres.resources -a -Ooff -g -o "bin\webtools.core.dll" "extensions.fs" "utils.fs" "quotex.fsi" "quotex.fs" "json_core.fs" "json_pars.fsi" "json_pars.fs" "json_lex.fs" "js_core.fs" "lib_core.fs" "lib_dom.fs" "js_translator.fs" "web_serializer.fs" "web_asp.fs"
if %ERRORLEVEL% EQU 1 EXIT 1

cd ..
update_references.bat